package com.pcbly.web.components.utils;
 

public class OptionUtils implements java.io.Serializable,
		Comparable<OptionUtils> {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1656698242149101289L;
	private String value;
	private String text;

	public OptionUtils() {

	}

	public OptionUtils(String value, String text) {
		setValue(value);
		setText(text);
	}

	public String getValue() {
		return value;
	}

	public void setValue(final String value) {
		this.value = value;
	}

	public String getText() {
		return text;
	}

	public void setText(final String text) {
		this.text = text;
	}

	public boolean equals(Object obj) {
		return value.equals(((OptionUtils) obj).getValue());
	}

	@Override
	public int compareTo(OptionUtils o) {
		// TODO Auto-generated method stub
		return value.compareTo(((OptionUtils) o).getValue());
	}

}
